package org.jeecg.modules.basesource.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.github.jeffreyning.mybatisplus.service.MppServiceImpl;
import org.jeecg.modules.basesource.entity.SbCwbbQykjzzybqyLrb;
import org.jeecg.modules.basesource.mapper.SbCwbbQykjzzybqyLrbMapper;
import org.jeecg.modules.basesource.service.ISbCwbbQykjzzybqyLrbService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 利润表（适用未执行新金融准则、新收入准则和新租赁准则的一般企业）
 * @Author: jeecg-boot
 * @Date:   2022-02-25
 * @Version: V1.0
 */
@Service
public class SbCwbbQykjzzybqyLrbServiceImpl extends MppServiceImpl<SbCwbbQykjzzybqyLrbMapper, SbCwbbQykjzzybqyLrb> implements ISbCwbbQykjzzybqyLrbService {

    @Override
    public SbCwbbQykjzzybqyLrb getByCompositePk(String tynsrsbh, String ssqq, String ssqz) {
        LambdaQueryWrapper<SbCwbbQykjzzybqyLrb> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(SbCwbbQykjzzybqyLrb::getTynsrsbh, tynsrsbh).eq(SbCwbbQykjzzybqyLrb::getSkssqq, ssqq).eq(SbCwbbQykjzzybqyLrb::getSkssqz, ssqz);
        return this.getOne(queryWrapper);
    }


}
